import { post, get } from '@/utils/http'

/**
 * 分页获取租户列表
 * @param {*} data 
 * @returns 
 */
export const getTenantsByPage = data => get('/api/tenant/getTenantsByPage', data)

/**
 * 添加租户
 * @param {*} data 
 * @returns 
 */
export const addTenant = (data, callback) => post('/api/tenant/addTenant', data, null, callback)

/**
 * 编辑租户
 * @param {*} data 
 * @returns 
 */
export const editTenant = (data, callback) => post('/api/tenant/editTenant', data, null, callback)

/**
 * 删除租户
 * @param {*} data 
 * @returns 
 */
export const deleteTenant = (data, callback) => post('/api/Tenant/deleteTenant', null, data, callback)
